<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06_Storage-Storage其他方法</title>
</head>
<body>

  <script>
    const ACCESS_TOKEN = 'access_token'

    console.log(localStorage.length);
    // 常见的方法
    // localStorage.setItem('key', 'value')
    // localStorage.getItem('key')
    // localStorage.removeItem('key')
    // localStorage.clear()

    // localStorage.setItem(ACCESS_TOKEN, '123456')
    // localStorage.setItem('name', '张三')
    // localStorage.setItem('age', 18)
    // localStorage.setItem('gender', '男')

    // localStorage.removeItem('name')

  </script>
  
</body>
</html>